﻿<div class="text-center">
    <MButton Dark
             Color="indigo"
             OnClick="() => _snackbar = true">
        Open Snackbar
    </MButton>

    <MSnackbar @bind-Value="_snackbar"
               Vertical
               Action="Close">
        Lorem ipsum dolor sit amet
    </MSnackbar>
</div>

@code{
    private bool _snackbar;
}